﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace WebApiV001.Domain.Entity
{
    public class Admin3200DbContext: DbContext
    {
        public Admin3200DbContext() { }

        public Admin3200DbContext(DbContextOptions<Admin3200DbContext> options) : base(options)
        {

        }
        //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        //{
        //    optionsBuilder.UseSqlServer("server=DESKTOP-S3544UE\\SQLEXPRESS;database=Admin3200;uid=sa;pwd=123456");
        //}

        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<UsersRoles> UsersRoles { get; set; }
        public  DbSet<RolesPermission> rolesPermissions { get; set; }
    }
}
